// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using Elastic.Transport.Products.Elasticsearch;
using System.Collections.Generic;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.Cluster
{
	public sealed partial class ClusterAllocationExplainResponse : ElasticsearchResponseBase
	{
		[JsonInclude]
		[JsonPropertyName("allocate_explanation")]
		public string? AllocateExplanation { get; init; }

		[JsonInclude]
		[JsonPropertyName("allocation_delay")]
		public Elastic.Clients.Elasticsearch.Duration? AllocationDelay { get; init; }

		[JsonInclude]
		[JsonPropertyName("allocation_delay_in_millis")]
		public long? AllocationDelayInMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_allocate")]
		public Elastic.Clients.Elasticsearch.Cluster.Decision? CanAllocate { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_move_to_other_node")]
		public Elastic.Clients.Elasticsearch.Cluster.Decision? CanMoveToOtherNode { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_rebalance_cluster")]
		public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceCluster { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_rebalance_cluster_decisions")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.AllocationDecision>? CanRebalanceClusterDecisions { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_rebalance_to_other_node")]
		public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceToOtherNode { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_remain_decisions")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.AllocationDecision>? CanRemainDecisions { get; init; }

		[JsonInclude]
		[JsonPropertyName("can_remain_on_current_node")]
		public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRemainOnCurrentNode { get; init; }

		[JsonInclude]
		[JsonPropertyName("cluster_info")]
		public Elastic.Clients.Elasticsearch.Cluster.ClusterInfo? ClusterInfo { get; init; }

		[JsonInclude]
		[JsonPropertyName("configured_delay")]
		public Elastic.Clients.Elasticsearch.Duration? ConfiguredDelay { get; init; }

		[JsonInclude]
		[JsonPropertyName("configured_delay_in_millis")]
		public long? ConfiguredDelayInMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("current_node")]
		public Elastic.Clients.Elasticsearch.Cluster.CurrentNode? CurrentNode { get; init; }

		[JsonInclude]
		[JsonPropertyName("current_state")]
		public string CurrentState { get; init; }

		[JsonInclude]
		[JsonPropertyName("index")]
		public string Index { get; init; }

		[JsonInclude]
		[JsonPropertyName("move_explanation")]
		public string? MoveExplanation { get; init; }

		[JsonInclude]
		[JsonPropertyName("node_allocation_decisions")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Cluster.NodeAllocationExplanation>? NodeAllocationDecisions { get; init; }

		[JsonInclude]
		[JsonPropertyName("note")]
		public string? Note { get; init; }

		[JsonInclude]
		[JsonPropertyName("primary")]
		public bool Primary { get; init; }

		[JsonInclude]
		[JsonPropertyName("rebalance_explanation")]
		public string? RebalanceExplanation { get; init; }

		[JsonInclude]
		[JsonPropertyName("remaining_delay")]
		public Elastic.Clients.Elasticsearch.Duration? RemainingDelay { get; init; }

		[JsonInclude]
		[JsonPropertyName("remaining_delay_in_millis")]
		public long? RemainingDelayInMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("shard")]
		public int Shard { get; init; }

		[JsonInclude]
		[JsonPropertyName("unassigned_info")]
		public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; init; }
	}
}